n = int(input("请输入一个整数："))
lst = []

for i in range(1,n+1):
    lst.append("2"*i)
lstNum = [int(item) for item in lst]
print(lstNum,"sum=",sum(lstNum))


# n = int(input("请输入一个数字："))
# a = 0
# s = 0
# for i in range(n):
#     a = a*10+2
#     s = s + a
# print(s)
